<%@page import="edu.mta.pokerstats.Player"%>
<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
	Player viewingPlayer = (Player)session.getAttribute("viewingPlayer");
%>
<%
	if (viewingPlayer.isTeamLeader()) {
%>
<script type="text/javascript" src="js/createNewGame.js"></script>
<div id="divCreateNewGame">
	<div>
		<label>Date Of Game:</label><br/>
		<input type="date" id="gameDate">
		<a id="dateError" class="inputError" hidden="hidden">Please Enter a	valid date.</a>
	</div>
	<div>
		<label>Cost Of Buy-In:</label><br/>
		<input type="number" id="gameBuyIn" min="0" value="50">
		<a id="buyInError" class="inputError" hidden="hidden">Please Enter a valid number.</a>
	</div>
	<div>
		<label>Cost Of Rebuy:</label><br/>
		<input type="number" id="gameRebuy" min="0" value="50">
		<a id="rebuyError" class="inputError" hidden="hidden">Please Enter a valid number.</a>
	</div>
	<div>
		<label>Remark for Game:</label><br/>
		<input type="text" id="gameRemark">
	</div>
	<br/>
	<button class="yellowButton largeBtn" id="gameSubmit" onClick="submitNewGame(<%=viewingPlayer.getTeamId()%>)">Create New Game!</button>
</div>
<div id="submitResult"></div>
<%
	}
%>